#include "TemplateMethodApplication.h"
#include <QDebug>

#include "UI/ModRun/Output/FactoryOutput.h"


TemplateMethodApplication::TemplateMethodApplication()
{

}

TemplateMethodApplication::~TemplateMethodApplication()
{

}

//步骤2;
bool TemplateMethodApplication::Step2()
{
    QString strOutput = "TemplateMethodApplication::Step2";
    qDebug() << strOutput;
    std::shared_ptr<IOutput> pOutPut = FactoryOutput::GetInstance()->CreateRunOutput();
    if (pOutPut)
    {
        std::initializer_list<QString> outList{ strOutput };
        pOutPut->OutPut(outList);
    }
    return true;
}

//步骤4;
void TemplateMethodApplication::Step4()
{
    QString strOutput = "TemplateMethodApplication::Step4";
    qDebug() << strOutput;
    std::shared_ptr<IOutput> pOutPut = FactoryOutput::GetInstance()->CreateRunOutput();
    if (pOutPut)
    {
        std::initializer_list<QString> outList{ strOutput };
        pOutPut->OutPut(outList);
    }
    return;
}
